package com.augn.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class CulturalHeritage implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer culId; //文化遗产编号
    private Integer inheritorsId; //传承人编号
    private Integer immaterial; //是否为非物质文化遗产

    private String releaseTime; //文化遗产发布年份
    private String name; //文化遗产名字
    private String sort; //类别
    private String city; //地区
    private String detail; //内容详情
    private String image; //图片详情

    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
